package TechnicalServices;
import java.util.List;

public class Facade{
	private static Facade thisFacade;
    
    
    
    
    public static Facade getInstance(){
            if (thisFacade == null)
                    thisFacade = new Facade();
            return thisFacade;
    }
    
    public Object get(int ID, Object objectClass){
            IMapper mapper = MapperFactory.getMapper(objectClass);
            return mapper.get(ID);
    }
    public int put(Object object,Object objectClass){
            IMapper mapper = MapperFactory.getMapper(objectClass);
            return mapper.put(object);
    }
    
    public List<Object> getAll(Object objectClass){                        
            IMapper mapper = MapperFactory.getMapper(objectClass);           
            return mapper.getAll();
    }	

}
